package com.zsk.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Administrator
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ShopUserAccount {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "主键编号", dataType = "Long")
    private Long id;

    @ApiModelProperty(name = "userNo", value = "用户业务主键", dataType = "String")
    private String userNo;
    @ApiModelProperty(name = "lastBalance", value = "上次余额", dataType = "BigDecimal")
    private BigDecimal lastBalance;
    @ApiModelProperty(name = "changeBalance", value = "变动金额", dataType = "BigDecimal")
    private BigDecimal changeBalance;
    @ApiModelProperty(name = "changeFrozen", value = "变动冻结余额", dataType = "BigDecimal")
    private BigDecimal changeFrozen;
    @ApiModelProperty(name = "totalFrozen", value = "合计冻结余额", dataType = "BigDecimal")
    private BigDecimal totalFrozen;
    @ApiModelProperty(name = "nowBalance", value = "变动后现有余额", dataType = "BigDecimal")
    private BigDecimal nowBalance;

    @ApiModelProperty(name = "content", value = "变动文案", dataType = "String")
    private String content;
    @ApiModelProperty(name = "accountChangeType", value = "变动类型", dataType = "Integer")
    private Integer accountChangeType;
    @ApiModelProperty(name = "orderNo", value = "根据变动类型中的订单编号", dataType = "String")
    private String orderNo;

    @ApiModelProperty(name = "tip", value = "变动类型为财务打款标记是否有补贴", dataType = "Boolean")
    private Boolean tip;

    @ApiModelProperty(name = "withdrawId", value = "根据变动类型中的提现编号", dataType = "Long")
    private Long withdrawId;
    @ApiModelProperty(name = "createTime", value = "生成时间", dataType = "Date")
    private Date createTime;

}